<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/lkzgx365/all-memory"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
    <link rel="stylesheet" th:href="@{/lib/zTree_v3/css/zTreeStyle/zTreeStyle.css}" type="text/css">
</head>
<body class="timo-layout-page">
<div class="layui-card">

    <div class="layui-card-body">
        <div class="layui-row timo-card-screen put-row">
            <div class="btn-group-right">
                <button class="layui-btn open-popup" data-title="添加CRU价格" th:attr="data-url=@{'/business/account/earn/record/add/'+${accountId}}"
                         data-size="auto">
                    <i class="fa fa-plus"></i> 添加
                </button>
            </div>
        </div>
        <div class="timo-table-wrap">
            <table class="layui-table timo-table">
                <thead>
                <tr>
                    <th>序号</th>
                    <th class="sortable" data-field="createDate">日期</th>
                    <th class="sortable" data-field="count">总存储</th>
                    <th class="sortable" data-field="cruEarn">CRU总收益</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="item,itemStart:${list}">
                    <td th:text="${itemStart.count}"></td>
                    <td th:text="${#dates.format(item.createDate,'yyyy-MM-dd')}" >日期</td>
                    <td th:text="${item.count}">总存储</td>
                    <td th:text="${item.cruEarn}">CRU总收益</td>

                </tr>
                </tbody>
            </table>
        </div>
        <div th:replace="/common/fragment :: page"></div>
    </div>
</div>
<script th:replace="/common/template :: script"></script>
<script type="text/javascript" th:src="@{/js/plugins/jquery-2.2.4.min.js}"></script>
<script type="text/javascript" th:src="@{/lib/zTree_v3/js/jquery.ztree.core.min.js}"></script>
<script type="text/javascript" th:src="@{/js/timoTree.js}"></script>
<script type="text/javascript">
    var local = window.localStorage;
    // 树形菜单
    $.fn.selectTree({
        rootTree: '全部',
        onSelected: function (treeNode) {
            local.setItem('deptTitle', treeNode.name);
        }
    });
</script>
</body>
</html>